package com.jd.learn.event.spring.program;

import com.jd.learn.event.spring.ApplicationEventTest;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author shenkaiwen5
 * @version 1.0
 * @date 2021/1/13
 */
@Component
public class ApplicationListenerTest implements ApplicationListener<ApplicationEventTest> {

    @Override
    public void onApplicationEvent(ApplicationEventTest event) {
        event.pringMsg("[test message]");
    }
}
